all: bash-install vim-install screen-install

bash-install:
	test -f ~/.bashrc && mv -i ~/.bashrc ~/.bashrc.local || true
	test -L ~/.bashrc && rm -f ~/.bashrc || true
	ln -s vadconf/bashrc ~/.bashrc

vim-install:
	test -f ~/.vimrc && mv -i ~/.vimrc ~/.vimrc.vadconf || true
	test -L ~/.vimrc && rm -f ~/.vimrc || true
	test -d ~/.vim && mv -i ~/.vim ~/.vim.vadconf || true
	test -L ~/.vim && rm -f ~/.vim || true
	ln -s vadconf/vimrc ~/.vimrc
	ln -s vadconf/vim ~/.vim

screen-install:
	test -f ~/.screenrc && mv -i ~/.screenrc ~/.screenrc.vadconf || true
	test -L ~/.screenrc && rm -f ~/.screenrc || true
	ln -s vadconf/screenrc ~/.screenrc
